package com.heima.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.heima.entity.SkuClass;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author author
 * @since 2024-06-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TbSkuVo implements Serializable {

    private static final long serialVersionUID = 1L;


    private Long skuId;

    /**
     * 商品名称
     */
    private String skuName;

    /**
     * 商品图片
     */
    private String skuImage;

    /**
     * 基础价格
     */
    private Integer price;

    /**
     * 商品类别Id
     */
    private Integer classId;

    /**
     * 是否打折促销
     */
    private Boolean isDiscount;

    /**
     * 净含量
     */
    private String unit;

    private String brandName;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private SkuClass skuClass;

}
